package com.xqboss.apps.mapper.nft;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.nft.NftRepertorySeparation;
import org.apache.ibatis.annotations.Param;


public interface NftRepertorySeparationMapper extends BaseMapper<NftRepertorySeparation> {

    /**
     * 扣减专享库存
     */
    int updateExclusiveCurrentRepertoryReduce(@Param("id") Long id, @Param("num") Long num);

    /**
     * 扣减持图库存
     *
     * @param id
     * @return
     */
    int updatePictureCurrentRepertoryReduce(@Param("id") Long id, @Param("num") Long num);

    /**
     * 扣减普通库存
     *
     * @param id
     * @return
     */
    int updateOrdinaryCurrentRepertoryReduce(@Param("id") Long id, @Param("num") Long num);

    /**
     * 回退专享库存
     *
     * @param id
     * @return
     */
    int updateExclusiveCurrentRepertoryAdd(@Param("id") Long id, @Param("num") Long num);

    /**
     * 回退持图库存
     *
     * @param id
     * @return
     */
    int updatePictureCurrentRepertoryAdd(@Param("id") Long id, @Param("num") Long num);

    /**
     * 回退普通库存
     *
     * @param id
     * @return
     */
    int updateOrdinaryCurrentRepertoryAdd(@Param("id") Long id, @Param("num") Long num);
}
